@import (reference) "../../theme/style";

.home-header {
  .flex-right;
  .border-bottom();
  padding-left: 15px;
  position: relative;
  .new-case {
    .border-left();
    .flex-center;
    padding: 0 10px;
    position: relative;
    & > a {
      color: black;
    }
  }
}

.home-list {
  height: calc(~'100%' - @header-height);
  padding: 7px;
  position: relative;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.home-add {
  background: white;
  padding-top: @header-height;
  &-header {
    .flex-right;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: @header-height;
    & > * {
      .border-left();
      .flex-center;
      position: relative;
      width: 70px;
      height: @header-height;
      & > a {
        .flex-center;
        width: 70px;
        height: @header-height;
        line-height: @header-height;
        color: black;
      }
    }
  }
  & > .content {
    position: relative;
    height: auto;
  }
  .am-button {
    width: 100px;
    margin: 15px;
  }
  &-region {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-left: 40px;
    .am-tag {
      min-width: 60px;
      margin: 10px;
    }
  }
}

.home-case {
  position: relative;
  margin-top: 10px;
  margin-bottom: 10px;
  .border();
  & > .case-action {
    position: relative;
    height: 40px;
    .border-top();
    .case-item {
      display: flex;
      flex: 1;
      justify-content: center;
      align-items: center;
      height: 100%;
      & > .am-icon {
        margin-left: 10px;
      }
      &:active {
        background-color: #91d5ff;
        color: white;
      }
    }
  }
}
.case-title {
  .flex-center;
  height: 40px;
  line-height: 40px;
  font-size: 16px;
}

.case-content {
  .border-top();
  position: relative;
  width: 100%;
  height: auto;
  text-align: center;
  line-height: 100px;
  color: #d9d9d9;
  & > img {
    width: 100%;
    padding: 0 5px 5px;
  }
}